import request from "./request.js"


function login(phoneNumber, password) {
	return request({
		url: "/login",
		method: 'POST',
		data: {
			phoneNumber,
			password
		}
	})
}

function mailLogin(email, password) {
	return request({
		url: "/email",
		method: 'POST',
		data: {
			email,
			password
		}
	})
}



module.exports = {
	login,
	mailLogin
}